<?php
function page_home(){
  $output = page_home_slideshow();
  $output .= page_home_website();
  $output .= page_home_intro();
  $output .= node_extra_home_news_left();
  $output .= node_extra_home_news_right();
  return $output;
}

function page_home_slideshow(){
  $select = db_select('node', 'n');
  $select = $select->fields('n', array('nid'))
                    ->condition('n.status', 1)
                    ->condition('n.type', 'slideshow')
                    ->orderBy('n.created', 'desc')
                    ->execute()
                    ->fetchAll();
  if(!empty($select)){
    return 'hehe';//TODO
  }          
  return '';
}

function page_home_website(){
  return theme('home_website');
}

function page_home_intro(){
  return theme('home_intro');
}